package com.bipbip.modelo;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;

import lombok.Data;

import org.springframework.context.annotation.Scope;

@Entity
@Table(name = "Notificacion")
@Scope("session")
public @Data
class NotificacionStandard {

	public static final int SIMPLE = 0;
	public static final int EMPLEO = 1;
	public static final int MENSAJE = 2;
	public static final int COMENTARIO_PERFIL = 3;

	@Id
	@Column(name = "id")
	@GeneratedValue(strategy = GenerationType.AUTO)
	protected Integer id;

	@Column(name = "fecha")
	@Temporal(javax.persistence.TemporalType.TIMESTAMP)
	private Date fecha;

	@Column(name = "mensaje")
	private String mensaje;

	@Column(name = "link")
	private String link;

	@Column(name = "icon")
	private String icon;

	@Column(name = "usuario")
	private Integer usuario;

	@Column(name = "tipo")
	private Integer tipo;

	@Column(name = "emisor")
	private Integer emisor;

	@Column(name = "isDeleted")
	protected boolean isDeleted;

	@Column(name = "oculta")
	protected boolean isOculta;

}
